package com.github.catvod.spider;

import android.content.Context;
import android.text.TextUtils;
import android.util.Base64;
import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.Dv;
import com.github.catvod.spider.merge.HZ;
import com.github.catvod.spider.merge.JL;
import com.github.catvod.spider.merge.L;
import com.github.catvod.spider.merge.Lm;
import com.github.catvod.spider.merge.au;
import com.github.catvod.spider.merge.fP;
import com.github.catvod.spider.merge.lk;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.StringReader;
import java.net.URLEncoder;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import okhttp3.Call;
import okhttp3.Response;
import org.json.JSONArray;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class Czsapp extends Spider {
    private String y = "";

    /* renamed from: short, reason: not valid java name */
    private static final short[] f17short = {3192, 3186, 3073, 3076, 3192, 3079, 3185, 3187, 3192, 3169, 3116, 3131, 3112, 3194, 3073, 3078, 3134, 3078, 3117, 3079, 3185, 3175, 3132, 3119, 3124, 3129, 3118, 3123, 3125, 3124, 3194, 3134, 3124, 3129, 3112, 3107, 3188, 3184, 3127, 3134, 3183, 3188, 3135, 3124, 3129, 3188, 3087, 3118, 3132, 3170, 3188, 3114, 3131, 3112, 3113, 3135, 3078, 3186, 3192, 3186, 3073, 3078, 3134, 3078, 3117, 3079, 3185, 3187, 3192, 3188, 3184, 3127, 3134, 3183, 3188, 3135, 3124, 3129, 3188, 3087, 3118, 3132, 3170, 3188, 3114, 3131, 3112, 3113, 3135, 3078, 3186, 3186, 3073, 3078, 3134, 3079, 3185, 3187, 3078, 3187, 738, 765, 752, 753, 763, 686, 692, 712, 751, 737, 742, 760, 686, 692, 694, 700, 719, 714, 694, 713, 703, 701, 694, 1054, 1048, 1039, 1049, 1028, 1049, 1025, 1032, 1111, 1101, 1073, 1046, 1048, 1055, 1025, 1111, 1103, 1093, 1078, 1075, 1103, 1072, 1094, 1073, 1091, 1051, 1049, 1049, 1092, 1103, 2207, 2195, 2194, 2191, 2184, 2208, 2191, 2263, 2193, 2181, 2191, 2186, 2203, 2208, 2191, 2262, 2241, 2208, 2191, 2262, 2267, 2260, 2215, 2210, 2267, 2209, 2263, 2261, 2267, 1472, 1410, 1408, 1433, 1414, 1418, 1472, 1479, 1459, 1419, 1476, 1478, 1473, 1415, 1435, 1410, 1411, 408, 455, 470, 464, 466, 408, 415, 491, 467, 412, 414, 707, 666, 691, 668, 640, 653, 661, 707, 708, 706, 710, 709, 688, 706, 644, 664, 641, 640, 788, 771, 784, 834, 788, 777, 775, 795, 834, 863, 834, 825, 837, 832, 831, 842, 825, 828, 837, 832, 831, 841, 843, 825, 837, 832, 831, 1138, 1125, 1142, 1060, 1122, 1138, 1135, 1121, 1149, 1060, 1081, 1060, 1119, 1059, 1062, 1113, 1068, 1119, 1114, 1059, 1062, 1113, 1071, 1069, 1119, 1059, 1062, 1113, 1310, 1289, 1306, 1352, 1309, 1289, 1352, 1365, 1352, 1331, 1359, 1354, 1333, 1344, 1331, 1334, 1359, 1354, 1333, 1347, 1345, 1331, 1359, 1354, 1333, 1895, 1904, 1891, 1841, 1906, 1912, 1889, 1841, 1836, 1841, 1866, 1846, 1843, 1868, 1849, 1866, 1871, 1846, 1843, 1868, 1850, 1848, 1866, 1846, 1843, 1868, 2734, 2745, 2730, 2808, 2732, 2737, 2741, 2749, 2808, 2789, 2808, 2691, 2815, 2810, 2693, 2800, 2691, 2694, 2815, 2810, 2693, 2803, 2801, 2691, 2815, 2810, 2693, 2502, 2513, 2498, 2448, 2501, 2498, 2524, 2448, 2445, 2448, 2539, 2455, 2450, 2541, 2456, 2539, 2542, 2455, 2450, 2541, 2459, 2457, 2539, 2455, 2450, 2541, 3294, 3280, 3276, 3208, 3310, 3218, 3223, 3304, 3229, 3310, 3307, 3218, 3223, 3304, 3230, 3228, 3310, 3218, 3223, 3304, 1319, 1328, 1341, 1316, 1332, 1388, 1290, 1398, 1395, 1292, 1401, 1290, 1295, 1398, 1395, 1292, 1402, 1400, 1290, 1398, 1395, 1292, 1956, 833, 1068, 2559, 2922, 1876, 3308, 1916, 1781, 1154, 2590, 1953, 782, 2780, 1460, 1426, 1412, 1427, 1484, 1440, 1414, 1412, 1423, 1429, 618, 584, 605, 590, 587, 587, 582, 520, 530, 521, 535, 519, 527, 590, 631, 591, 584, 585, 578, 540, 519, 612, 631, 626, 519, 590, 631, 591, 584, 585, 578, 519, 616, 628, 519, 534, 532, 632, 533, 632, 532, 519, 587, 590, 588, 578, 519, 618, 582, 580, 519, 616, 628, 519, 639, 526, 519, 614, 599, 599, 587, 578, 624, 578, 581, 620, 590, 595, 520, 530, 532, 528, 521, 532, 529, 519, 519, 527, 620, 623, 627, 618, 619, 523, 519, 587, 590, 588, 578, 519, 608, 578, 580, 588, 584, 526, 519, 625, 578, 597, 596, 590, 584, 585, 520, 534, 532, 521, 535, 519, 618, 584, 581, 590, 587, 578, 520, 534, 530, 610, 534, 531, 543, 519, 628, 582, 577, 582, 597, 590, 520, 530, 532, 528, 521, 532, 529, 2648, 2671, 2668, 2671, 2680, 2671, 2680, 2129, 2163, 2163, 2165, 2144, 2148, 2109, 2172, 2161, 2174, 2167, 2149, 2161, 2167, 2165, 2143, 2125, 2056, 2150, 2155, 2057, 2143, 2125, 2078, 2132, 2072, 2069, 2059, 2076, 841, 828, 835, 884, 864, 868, 884, 866, 869, 884, 885, 828, 838, 888, 869, 889, 2775, 2754, 2755, 2759, 2811, 2811, 2815, 2781, 2794, 2814, 2810, 2812, 2794, 2811, 1295, 1315, 1315, 1319, 1317, 1321, 1285, 1292, 1405, 799, 3252, 3242, 3245, 3239, 3244, 3252, 3309, 3247, 3244, 3232, 3234, 3255, 3242, 3244, 3245, 3309, 3243, 3249, 3238, 3237, 1442, 847, 857, 840, 785, 863, 851, 851, 855, 853, 857, 28439, 21358, -25782, -30201, 527, 607, 584, 581, 604, 588, 532, 2815, 2738, 2811, 2809, 2792, 2759, 2752, 2740, 2753, 2759, 2752, 2750, 2753, 2740, 2759, 2754, 2747, 2750, 2753, 2743, 2741, 3254, 3255, 3238, 3140, 3156, 3141, 3166, 3143, 3139, 2414, 2407, 2414, 2407, 2356, 2356, 2364, 2534, 2513, 2524, 2501, 2517, 2442, 2448, 27190, 22141, -29042, -30439, 20463, 26223, -30061, 21374, 850, 860, 832, 772, 866, 798, 795, 868, 785, 866, 871, 798, 795, 868, 786, 784, 866, 798, 795, 868, 1510, 1521, 1532, 1509, 1525, 1453, 1483, 1463, 1458, 1485, 1464, 1483, 1486, 1463, 1458, 1485, 1467, 1465, 1483, 1463, 1458, 1485, 1573, 1587, 1584, 1574, 1569, 684, 680, 703, 672, 734, 721, 681, 736, 758, 757, 739, 740, 703, 682, 734, 742, 681, 683, 672, 684, 680, 1808, 1819, 1819, 1805, 1801, 1818, 1803, 1792, 3189, 3112, 3134, 3133, 3115, 3116, 3191, 1390, 1386, 1376, 1745, 1739, 1756, 1759, 1327, 1930, 2005, 1988, 1986, 1984, 1930, 1387, 1382, 1401, 1313, 1407, 1390, 1384, 1386, 1377, 1390, 1401, 1382, 1360, 1403, 1399, 1403, 1327, 1327, 1390, 1313, 1386, 1399, 1403, 1386, 1377, 1387, 1845, 1848, 1831, 1919, 1852, 1848, 1806, 1855, 1844, 1806, 1850, 1845, 1905, 1903, 1905, 1828, 1853, 1905, 1903, 1905, 1853, 1848, 279, 1735, 1738, 1746, 920, 925, 904, 925, 977, 915, 910, 917, 923, 917, 914, 925, 912, 1624, 1621, 1610, 1554, 1620, 1624, 1621, 1618, 1626, 1619, 1564, 1538, 1564, 1615, 1612, 1629, 1618, 1215, 1190, 1197, 1174, 1184, 1197, 1514, 1523, 1528, 1475, 1522, 1533, 1521, 1529, 627, 618, 609, 602, 629, 620, 614, 3199, 3174, 3181, 3158, 3195, 3180, 3172, 3176, 3195, 3170, 3194, 2406, 2403, 2425, 2430, 1017, 1000, 1006, 1004, 1604, 1621, 1619, 1617, 1623, 1627, 1601, 1626, 1600, 3290, 3295, 3291, 3295, 3266, 1007, 1012, 1007, 1018, 1015, 2218, 2280, 
    2282, 2291, 2284, 2272, 2218, 1211, 1277, 1249, 1272, 1273, 1812, 1817, 1798, 1886, 1821, 1823, 1798, 1817, 1813, 1812, 1796, 1813, 1809, 1817, 1820, 1839, 1796, 1796, 1872, 1870, 1872, 1816, 1857, 2076, 2065, 2062, 2134, 2076, 2049, 2065, 2069, 2079, 2136, 2118, 2136, 2065, 2069, 2079, 2050, 2051, 2066, 635, 610, 544, 611, 609, 632, 615, 619, 618, 634, 619, 623, 615, 610, 593, 610, 615, 637, 634, 558, 560, 558, 610, 615, 32437, 21829, 21973, 20959, 22393, 18416, 24327, 27631, 18804, 26715, -30476, 28753, 848, 841, 834, 889, 847, 834, 2311, 2334, 2325, 2350, 2335, 2320, 2332, 2324, 607, 582, 589, 630, 601, 576, 586, 2291, 2302, 2295, 2274, 2264, 2281, 2278, 2282, 2274, 2717, 2692, 2703, 2740, 2706, 2702, 2698, 2713, 997, 1020, 1015, 972, 1010, 993, 1014, 1010, 488, 497, 506, 449, 492, 507, 499, 511, 492, 501, 493, 2108, 2085, 2094, 2069, 2091, 2089, 2110, 2085, 2104, 1080, 1057, 1066, 1041, 1066, 1063, 1084, 1067, 1069, 1082, 1057, 1084, 2137, 2112, 2123, 2160, 2124, 2112, 2113, 2139, 2122, 2113, 2139, 2170, 2167, 2152, 2096, 2151, 2158, 2113, 2173, 2161, 2160, 2154, 2171, 2150, 2154, 1529, 1504, 1515, 1488, 1535, 1507, 1518, 1526, 1488, 1513, 1533, 1504, 1506, -29548, 22784, 29083, 27876, 1723, 1718, 1705, 1777, 1711, 1726, 1715, 1702, 1664, 1715, 1718, 1708, 1707, 1664, 1725, 1707, 1713, 1791, 1761, 1791, 1726, 410, 384, 407, 404, 866, 1909, 1900, 1895, 1884, 1907, 1903, 1890, 1914, 1884, 1910, 1905, 1903, 1602, 1307, 1310, 1284, 1283, 2932, 2928, 2938, 1296, 1360, 1375, 1352, 1362, 1367, 1357, 1354, 1310, 1280, 1310, 1362, 1367, 1310, 1280, 1310, 1375, 2630, 2652, 2635, 2632, -28026, -27803, 2737, 2748, 2741, 2720, 2714, 2732, 2721, 963, 974, 967, 978, 1000, 985, 982, 986, 978, 2816, 2831, 2818, 2832, 2832, 2014, 2003, 1996, 1940, 2007, 2003, 2021, 2004, 2015, 2021, 2001, 2014, 1946, 1924, 1946, 1999, 2006, 1946, 1924, 1946, 2006, 2003, 461, 1425, 1436, 1412, 1666, 1671, 1682, 1671, 1739, 1673, 1684, 1679, 1665, 1679, 1672, 1671, 1674, 2522, 2519, 2504, 2448, 2518, 2522, 2519, 2512, 2520, 2513, 2462, 2432, 2462, 2509, 2510, 2527, 2512, 1900, 1909, 1918, 1861, 1907, 1918, 1009, 1000, 995, 984, 1001, 998, 1002, 994, 1929, 1936, 1947, 1952, 1935, 1942, 1948, 884, 877, 870, 861, 880, 871, 879, 867, 880, 873, 881, 2788, 2785, 2811, 2812, 1595, 1582, 719, 734, 734, 706, 711, 717, 719, 730, 711, 705, 704, 641, 705, 717, 730, 715, 730, 643, 733, 730, 732, 715, 719, 707, 837, 855, 848, 836, 838, 838, 2134, 2082, 2074, 2053, 2124, 2051, 2116, 2082, 2074, 2053, 2124, 2051, 2116, 2082, 2074, 2053, 2124, 2051, 2128, 2082, 2074, 2053, 2125, 2051, 2128, 2133, 2082, 2074, 2053, 2124, 2051, 2116, 2082, 2074, 2053, 2124, 2051, 2116, 2082, 2074, 2053, 2124, 2051, 2128, 2082, 2074, 2053, 2125, 2051, 2135, 2128, 2132, 3193, 3085, 3125, 3114, 3171, 3116, 3179, 3085, 3125, 3114, 3171, 3116, 3199, 3085, 3125, 3114, 3170, 3116, 3192, 3199, 3195, 3182, 3193, 3185, 3196, 3196, 3183, 3185, 3192, 3193, 3085, 3125, 3114, 3171, 3116, 3179, 3085, 3125, 3114, 3171, 3116, 3199, 3085, 3125, 3114, 3170, 3116, 3192, 3199, 3195, 416, 416, 426, 436, 417, 436, 418, 416, 416, 426, 436, 419, 1857, 1875, 1879, 1859, 1857, 1875, 1879, 1859, 1877, 1875, 1879, 1876, 1857, 1875, 1879, 1859, 1857, 1875, 1879, 1859, 2307, 2317, 2315, 2319, 2316, 2334, 1506, 1510, 1410, 1411, 1432, 1417, 1506, 1510, 883, 843, 852, 797, 850, 789, 883, 843, 852, 797, 850, 789, 883, 843, 852, 797, 850, 769, 883, 843, 852, 796, 850, 769, 772, 883, 843, 852, 797, 850, 789, 883, 843, 852, 797, 850, 789, 883, 843, 852, 797, 850, 769, 883, 843, 852, 796, 850, 1269, 2946, 3035, 3058, 3037, 3009, 3020, 3028, 2946, 880, 822, 810, 819, 818, 3181, 3178, 3188, 600, 599, 579, 592, 604, 596, 543, 583, 600, 599, 579, 592, 604, 596, 842, 843, 858, 3117, 3135, 3177, 3135, 3114, 3105, 3115, 3121, 3177, 3108, 3112, 3114, 895, 867, 867, 871, 868, 813, 824, 824, 893, 879, 825, 879, 890, 881, 891, 865, 825, 884, 888, 890, 824, 871, 891, 886, 878, 882, 869, 825, 871, 895, 871, 808, 867, 894, 890, 882, 810, 1657, 1578, 1581, 1587, 1634, 3064, 3067, 3048, 2972, 3043, 3065, 3060, 2969, 3040, 3049, 3060, 2975, 3043, 3068, 2960, 2960, 704, 708, 722, 686, 706, 707, 706, 686, 719, 750, 721, 736, 741, 741, 744, 751, 742, 427, 431, 441, 3300, 3321, 3325, 3317, 686, 698, 1639, 1645, 1652, 2719, 2690, 2700, 2704, 3287, 3271, 3290, 3284, 3272, 637, 609, 609, 613, 614, 559, 570, 570, 639, 621, 571, 621, 632, 627, 633, 611, 571, 630, 634, 632, 570, 621, 632, 627, 633, 611, 568, 548, 571, 582, 579, 594, 2152, 2169, 2154, 2155, 2173, 434, 3090, 3086, 3075, 3099, 3127, 3088, 3086, 2173, 2160, 2164, 2161, 2160, 2151, 1360, 1366, 1345, 1349, 557, 628, 630, 630, 557, 631, 630, 612, 559, 570, 2241, 2247, 2256, 2246, 652, 727, 732, 654, 720, 713, 704, 707, 707, 661, 710, 705, 735, 654, 1132, 1128, 1122, 1825, 1851, 1836, 1839, 2066, 2487, 2539, 2557, 2553, 2538, 2555, 2544, 2471, 2537, 2469, 2667, 2662, 2681, 2593, 2658, 2662, 2640, 2657, 2666, 2640, 2660, 2667, 2607, 2609, 2607, 2682, 2659, 2607, 2609, 2607, 2659, 2662, 957, 944, 936, 1033, 1032, 1049, 415, 475, 472, 469, 472, 2643, 2634, 2625, 2682, 2647, 2624, 2632, 2628, 2647, 2638, 2646, 2729, 2797, 2798, 2787, 2798, 2727, 2804, 2807, 2790, 2793, 2312, 2321, 2387, 2320, 2322, 2315, 2324, 2328, 2329, 2313, 2328, 2332, 2324, 2321, 2338, 2321, 2324, 2318, 2313, 2397, 2321, 2324, 2397, 2318, 2317, 2332, 2323, 318, 295, 300, 279, 289, 300, 1346, 1371, 1360, 1387, 1370, 1365, 1369, 1361, 2693, 2716, 2711, 2732, 2691, 2714, 2704, 416, 421, 447, 440};
    private static final Pattern h = Pattern.compile(C0009.m30(f17short, 0, 100, 3162));
    private static final Pattern V0 = Pattern.compile(C0013.m41(f17short, 100, 23, 660));
    private static final Pattern j = Pattern.compile(C0005.m17(f17short, 123, 30, 1133));
    private static final Pattern q = Pattern.compile(C0009.m30(f17short, 153, 29, 2300));
    private static final Pattern I = Pattern.compile(C0018.m56(f17short, 182, 17, 1519));
    private static final Pattern oC = Pattern.compile(C0017.m52(f17short, 199, 11, 439));
    private static final Pattern BQ = Pattern.compile(C0003.m9(f17short, 210, 18, 748));
    private static final Pattern W = Pattern.compile(C0017.m52(f17short, 228, 27, 866));
    private static final Pattern u = Pattern.compile(C0014.m43(f17short, 255, 28, 1028));
    private static final Pattern Qy = Pattern.compile(C0014.m43(f17short, 283, 25, 1384));
    private static final Pattern oq = Pattern.compile(C0007.m26(f17short, 308, 26, 1809));
    private static final Pattern F8 = Pattern.compile(C0008.m27(f17short, 334, 27, 2776));
    private static final Pattern t = Pattern.compile(C0006.m18(f17short, 361, 26, 2480));
    public static String n = "";
    private static final Pattern iU = Pattern.compile(C0017.m52(f17short, 387, 20, 3253));
    private static final Pattern i4 = Pattern.compile(C0012.m37(f17short, 407, 22, 1361));

    public Czsapp() {
        int m39 = C0013.m39();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m39 >= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Float.decode(C0008.m29("PA3hMHgnF9HnZoGmECIZzv85A")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:18:0x00cf. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:3:0x0008. Please report as an issue. */
    public static String escapeExprSpecialWord(String str) {
        boolean isEmpty = str.isEmpty();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = !isEmpty ? 1709 : 1678;
                case 204:
                    int i2 = 0;
                    String m43 = C0014.m43(f17short, 429, 1, 2040);
                    String m47 = C0015.m47(f17short, 430, 1, 869);
                    String m56 = C0018.m56(f17short, 431, 1, 1028);
                    String m35 = C0011.m35(f17short, 432, 1, 2518);
                    String m52 = C0017.m52(f17short, 433, 1, 2880);
                    String m27 = C0008.m27(f17short, 434, 1, 1919);
                    String m17 = C0005.m17(f17short, 435, 1, 3266);
                    String m272 = C0008.m27(f17short, 436, 1, 1831);
                    String m6 = C0002.m6(f17short, 437, 1, 1704);
                    String m3 = C0001.m3(f17short, 438, 1, 1213);
                    String m12 = C0004.m12(f17short, 439, 1, 2624);
                    String m18 = C0006.m18(f17short, 440, 1, 2010);
                    String m30 = C0009.m30(f17short, 441, 1, 883);
                    String m172 = C0005.m17(f17short, 442, 1, 2720);
                    while (true) {
                        int i3 = 1740;
                        while (true) {
                            i3 ^= 1757;
                            switch (i3) {
                                case 17:
                                    i3 = i2 < 14 ? 1833 : 1802;
                                case 54:
                                case 471:
                                    break;
                                case 500:
                                    String str2 = new String[]{m43, m47, m56, m35, m52, m27, m17, m272, m6, m3, m12, m18, m30, m172}[i2];
                                    boolean contains = str.contains(str2);
                                    int i5 = 1864;
                                    while (true) {
                                        i5 ^= 1881;
                                        switch (i5) {
                                            case 17:
                                                i5 = contains ? 48736 : 48705;
                                            case 47384:
                                                break;
                                            case 47417:
                                                str = str.replace(str2, m43 + str2);
                                                break;
                                            case 47483:
                                        }
                                    }
                                    i2++;
                                    int i6 = 48767;
                                    while (true) {
                                        i6 ^= 48784;
                                        switch (i6) {
                                            case 14:
                                                break;
                                            case 239:
                                                i6 = 48798;
                                                break;
                                        }
                                    }
                                    break;
                            }
                            break;
                        }
                    }
                    break;
                case 239:
                    break;
            }
        }
        return str;
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:3:0x006e. Please report as an issue. */
    private HashMap<String, String> h() {
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put(C0013.m41(f17short, 443, 10, 1505), C0005.m17(f17short, 453, 137, 551));
        hashMap.put(C0018.m56(f17short, 590, 7, 2570), this.y);
        hashMap.put(C0014.m43(f17short, 597, 15, 2064), C0003.m9(f17short, 612, 14, 2085));
        hashMap.put(C0015.m47(f17short, 626, 16, 785), C0013.m41(f17short, 642, 14, 2703));
        int length = n.length();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = length > 0 ? 1709 : 1678;
                case 204:
                    hashMap.put(C0006.m18(f17short, 656, 6, 1356), n);
                    break;
                case 239:
                    break;
            }
        }
        return hashMap;
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:25:0x0042. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:5:0x0025. Please report as an issue. */
    private String j(String str) {
        try {
            MessageDigest messageDigest = MessageDigest.getInstance(C0018.m56(f17short, 662, 3, 1352));
            messageDigest.update(str.getBytes());
            byte[] digest = messageDigest.digest();
            StringBuilder sb = new StringBuilder();
            int length = digest.length;
            int i = 0;
            while (true) {
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < length ? 1709 : 1678;
                        case 204:
                            String hexString = Integer.toHexString(digest[i] & 255);
                            while (true) {
                                int length2 = hexString.length();
                                int i3 = 1740;
                                while (true) {
                                    i3 ^= 1757;
                                    switch (i3) {
                                        case 17:
                                            i3 = length2 < 2 ? 1833 : 1802;
                                        case 54:
                                        case 471:
                                            break;
                                        case 500:
                                            hexString = C0017.m52(f17short, 665, 1, 815) + hexString;
                                            int i5 = 1864;
                                            while (true) {
                                                i5 ^= 1881;
                                                switch (i5) {
                                                    case 17:
                                                        i5 = 48674;
                                                        break;
                                                    case 47483:
                                                        break;
                                                }
                                            }
                                            break;
                                    }
                                    sb.append(hexString);
                                    i++;
                                    int i6 = 48767;
                                    while (true) {
                                        i6 ^= 48784;
                                        switch (i6) {
                                            case 14:
                                                break;
                                            case 239:
                                                i6 = 48798;
                                                break;
                                        }
                                    }
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    return sb.toString();
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:4:0x000b. Please report as an issue. */
    public static String stringtoHex(String str) {
        String str2 = "";
        int i = 0;
        while (true) {
            int length = str.length();
            int i2 = 1616;
            while (true) {
                i2 ^= 1633;
                switch (i2) {
                    case 14:
                    case 49:
                        i2 = i <= length + (-1) ? 1709 : 1678;
                    case 204:
                        str2 = str2 + (Integer.valueOf(str.charAt(i)).intValue() + 1);
                        i++;
                        int i3 = 1740;
                        while (true) {
                            i3 ^= 1757;
                            switch (i3) {
                                case 17:
                                    i3 = 1771;
                                    break;
                                case 54:
                                    break;
                            }
                        }
                        break;
                    case 239:
                        break;
                }
                return str2;
            }
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:279:0x0428, code lost:
    
        r1 = r0;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:194:0x033a. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:299:0x048b. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:89:0x01d0. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    protected final java.lang.String V0(java.lang.String r13) {
        /*
            Method dump skipped, instructions count: 1580
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Czsapp.V0(java.lang.String):java.lang.String");
    }

    /* JADX WARN: Code restructure failed: missing block: B:25:0x0066, code lost:
    
        r4 = r1;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:44:0x0105. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String categoryContent(java.lang.String r18, java.lang.String r19, boolean r20, java.util.HashMap<java.lang.String, java.lang.String> r21) {
        /*
            Method dump skipped, instructions count: 740
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Czsapp.categoryContent(java.lang.String, java.lang.String, boolean, java.util.HashMap):java.lang.String");
    }

    /* JADX WARN: Code restructure failed: missing block: B:228:0x024e, code lost:
    
        r5 = r6;
        r6 = r7;
        r7 = r8;
        r8 = r9;
        r22 = r4;
        r4 = r3;
        r3 = r22;
     */
    /* JADX WARN: Code restructure failed: missing block: B:260:0x029a, code lost:
    
        r6 = r7;
        r7 = r8;
        r8 = r9;
        r22 = r4;
        r4 = r5;
        r5 = r3;
        r3 = r22;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:10:0x03c7. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:145:0x0177. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:172:0x01be. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:199:0x0206. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:33:0x0439. Please report as an issue. */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r11v0, types: [org.json.JSONObject] */
    /* JADX WARN: Type inference failed for: r12v0, types: [java.lang.Object, org.json.JSONArray] */
    /* JADX WARN: Type inference failed for: r13v0, types: [java.lang.Object, org.json.JSONObject] */
    /* JADX WARN: Type inference failed for: r9v0 */
    /* JADX WARN: Type inference failed for: r9v1, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r9v10 */
    /* JADX WARN: Type inference failed for: r9v11 */
    /* JADX WARN: Type inference failed for: r9v12 */
    /* JADX WARN: Type inference failed for: r9v13 */
    /* JADX WARN: Type inference failed for: r9v7 */
    /* JADX WARN: Type inference failed for: r9v8 */
    /* JADX WARN: Type inference failed for: r9v9 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String detailContent(java.util.List<java.lang.String> r24) {
        /*
            Method dump skipped, instructions count: 1416
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Czsapp.detailContent(java.util.List):java.lang.String");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:12:0x0121. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:35:0x01fc. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:7:0x0047. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:83:0x00e7. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:96:0x00a6. Please report as an issue. */
    public String homeContent(boolean z) {
        String m52 = C0017.m52(f17short, 1250, 3, 2845);
        try {
            JSONObject jSONObject = new JSONObject();
            HZ h2 = lk.h(V0(this.y));
            Dv Pi = h2.Pi(C0011.m35(f17short, 1253, 17, 1342));
            JSONArray jSONArray = new JSONArray();
            Iterator<Lm> it = Pi.iterator();
            while (true) {
                boolean hasNext = it.hasNext();
                String m9 = C0003.m9(f17short, 1270, 4, 2606);
                int i = 1616;
                while (true) {
                    i ^= 1633;
                    switch (i) {
                        case 14:
                        case 49:
                            i = hasNext ? 1709 : 1678;
                        case 204:
                            Lm next = it.next();
                            String j2 = next.j(m9);
                            int length = j2.length();
                            int i2 = 1740;
                            while (true) {
                                i2 ^= 1757;
                                switch (i2) {
                                    case 17:
                                        i2 = length > 1 ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        break;
                                    case 500:
                                        String substring = j2.substring(1);
                                        String trim = next.e().trim();
                                        boolean contains = trim.contains(C0002.m6(f17short, 1274, 2, 2832));
                                        int i3 = 1864;
                                        while (true) {
                                            i3 ^= 1881;
                                            switch (i3) {
                                                case 17:
                                                    i3 = contains ? 48736 : 48705;
                                                case 47384:
                                                    JSONObject jSONObject2 = new JSONObject();
                                                    jSONObject2.put(C0017.m52(f17short, 1276, 7, 2757), substring.replace(this.y.substring(1), ""));
                                                    jSONObject2.put(C0009.m30(f17short, 1283, 9, 951), trim);
                                                    jSONArray.put(jSONObject2);
                                                    int i5 = 48891;
                                                    while (true) {
                                                        i5 ^= 48908;
                                                        switch (i5) {
                                                            case 22:
                                                                break;
                                                            case 503:
                                                                i5 = 48922;
                                                        }
                                                    }
                                                    break;
                                                case 47417:
                                                    int i6 = 48767;
                                                    while (true) {
                                                        i6 ^= 48784;
                                                        switch (i6) {
                                                            case 14:
                                                                break;
                                                            case 239:
                                                                i6 = 48798;
                                                        }
                                                    }
                                                    break;
                                                case 47483:
                                            }
                                        }
                                        break;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    jSONObject.put(C0004.m12(f17short, 1292, 5, 2915), jSONArray);
                    Dv Pi2 = h2.Pi(C0009.m30(f17short, 1297, 22, 1978));
                    JSONArray jSONArray2 = new JSONArray();
                    Iterator<Lm> it2 = Pi2.iterator();
                    while (true) {
                        boolean hasNext2 = it2.hasNext();
                        int i7 = 49666;
                        while (true) {
                            i7 ^= 49683;
                            switch (i7) {
                                case 17:
                                    i7 = hasNext2 ? 49759 : 49728;
                                case 50:
                                case 76:
                                    Lm next2 = it2.next();
                                    Matcher matcher = I.matcher(next2.Pi(C0018.m56(f17short, 1319, 1, 428)).h(m9));
                                    boolean find = matcher.find();
                                    int i8 = 49790;
                                    while (true) {
                                        i8 ^= 49807;
                                        switch (i8) {
                                            case 18:
                                            case 51:
                                                break;
                                            case 84:
                                                String group = matcher.group(1);
                                                String trim2 = next2.Pi(m52).h(C0005.m17(f17short, 1320, 3, 1520)).trim();
                                                String trim3 = next2.Pi(m52).h(C0012.m37(f17short, 1323, 13, 1766)).trim();
                                                String trim4 = next2.Pi(C0001.m3(f17short, 1336, 17, 2494)).I().trim();
                                                JSONObject jSONObject3 = new JSONObject();
                                                jSONObject3.put(C0000.m1(f17short, 1353, 6, 1818), group);
                                                jSONObject3.put(C0015.m47(f17short, 1359, 8, 903), trim2);
                                                jSONObject3.put(C0002.m6(f17short, 1367, 7, 2047), trim3);
                                                jSONObject3.put(C0008.m27(f17short, 1374, 11, 770), trim4);
                                                jSONArray2.put(jSONObject3);
                                                int i9 = 49914;
                                                while (true) {
                                                    i9 ^= 49931;
                                                    switch (i9) {
                                                        case 497:
                                                            i9 = 50596;
                                                        case 1711:
                                                            break;
                                                    }
                                                }
                                                break;
                                            case 241:
                                                i8 = find ? 49883 : 49852;
                                        }
                                    }
                                    break;
                                case 83:
                                    break;
                            }
                            jSONObject.put(C0008.m27(f17short, 1385, 4, 2696), jSONArray2);
                            return jSONObject.toString();
                        }
                    }
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    public void init(Context context, String str) {
        super.init(context, str);
        this.y = new String(Base64.decode(str.substring(1), 0));
        int m4 = C0001.m4();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m4 <= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Double.valueOf(C0011.m34("FEIcbbk2kgilSqcONrdyklouevNM2")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:27:0x0104. Please report as an issue. */
    public Object[] loadsub(String str) {
        int i;
        String m56 = C0018.m56(f17short, 1389, 2, 1567);
        try {
            L.Tw tw = new L.Tw(this) { // from class: com.github.catvod.spider.Czsapp.1
                final Czsapp V0;

                {
                    this.V0 = this;
                    int m32 = C0009.m32();
                    int i2 = 1616;
                    while (true) {
                        i2 ^= 1633;
                        switch (i2) {
                            case 14:
                            case 49:
                                i2 = m32 >= 0 ? 1709 : 1678;
                            case 204:
                                System.out.println(C0002.m7("jEf"));
                                break;
                            case 239:
                                break;
                        }
                        return;
                    }
                }

                @Override // com.github.catvod.spider.merge.L
                protected void onFailure(Call call, Exception exc) {
                }

                /* JADX INFO: Access modifiers changed from: protected */
                @Override // com.github.catvod.spider.merge.L
                public String onResponse(Response response) {
                    return null;
                }
            };
            fP.q(fP.j(), str, null, h(), tw);
            Response result = tw.getResult();
            int code = result.code();
            String m3 = C0001.m3(f17short, 1391, 24, 686);
            int i2 = 1616;
            while (true) {
                i2 ^= 1633;
                switch (i2) {
                    case 14:
                    case 49:
                        i2 = code == 404 ? 1709 : 1678;
                    case 204:
                        return new Object[]{200, m3, new ByteArrayInputStream(C0000.m1(f17short, 1415, 6, 786).getBytes())};
                    case 239:
                        byte[] bytes = result.body().bytes();
                        byte[] copyOfRange = Arrays.copyOfRange(bytes, 0, 16);
                        BufferedReader bufferedReader = new BufferedReader(new StringReader(au.h(JL.h(Arrays.copyOfRange(bytes, 16, bytes.length), copyOfRange, copyOfRange)).replaceAll(C0006.m18(f17short, 1421, 52, 2174), m56).replaceAll(C0017.m52(f17short, 1473, 50, 3153), C0009.m30(f17short, 1523, 12, 400)).replaceAll(C0014.m43(f17short, 1535, 20, 1917), m56).replaceAll(C0015.m47(f17short, 1555, 6, 2341), "").replaceAll(C0012.m37(f17short, 1561, 8, 1484), "")));
                        ArrayList arrayList = new ArrayList();
                        int i3 = 1;
                        String readLine = bufferedReader.readLine();
                        while (true) {
                            int i5 = 1740;
                            while (true) {
                                i5 ^= 1757;
                                switch (i5) {
                                    case 17:
                                        i5 = readLine != null ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        break;
                                    case 500:
                                        boolean matches = readLine.matches(C0000.m1(f17short, 1569, 48, 815));
                                        int i6 = 1864;
                                        while (true) {
                                            i6 ^= 1881;
                                            switch (i6) {
                                                case 17:
                                                    i6 = matches ? 48736 : 48705;
                                                case 47384:
                                                    break;
                                                case 47417:
                                                    boolean isEmpty = ((String) arrayList.get(arrayList.size() - 1)).trim().isEmpty();
                                                    int i7 = 48767;
                                                    while (true) {
                                                        i7 ^= 48784;
                                                        switch (i7) {
                                                            case 14:
                                                            case 45:
                                                                break;
                                                            case 76:
                                                                arrayList.add(i3 + "");
                                                                i = i3 + 1;
                                                                break;
                                                            case 239:
                                                                i7 = isEmpty ? 48860 : 48829;
                                                        }
                                                    }
                                                    break;
                                                case 47483:
                                            }
                                        }
                                        i = i3;
                                        arrayList.add(readLine);
                                        String readLine2 = bufferedReader.readLine();
                                        int i8 = 48891;
                                        while (true) {
                                            i8 ^= 48908;
                                            switch (i8) {
                                                case 22:
                                                    break;
                                                case 503:
                                                    i8 = 48922;
                                                    break;
                                            }
                                        }
                                        readLine = readLine2;
                                        i3 = i;
                                        break;
                                }
                                return new Object[]{200, m3, new ByteArrayInputStream(TextUtils.join(C0002.m6(f17short, 1617, 1, 1279), arrayList).getBytes())};
                            }
                        }
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
            SpiderDebug.log(e);
            return null;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:318:0x00f9, code lost:
    
        r3 = "";
     */
    /* JADX WARN: Code restructure failed: missing block: B:56:0x00c5, code lost:
    
        r3 = r2;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String playerContent(java.lang.String r18, java.lang.String r19, java.util.List<java.lang.String> r20) {
        /*
            Method dump skipped, instructions count: 1452
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Czsapp.playerContent(java.lang.String, java.lang.String, java.util.List):java.lang.String");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:38:0x01be. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:51:0x014b. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x0077. Please report as an issue. */
    public String searchContent(String str, boolean z) {
        String m43 = C0014.m43(f17short, 1842, 3, 1029);
        String m56 = C0018.m56(f17short, 1845, 4, 1865);
        String m9 = C0003.m9(f17short, 1849, 1, 2163);
        try {
            JSONObject jSONObject = new JSONObject();
            Dv Pi = lk.h(V0(this.y + C0006.m18(f17short, 1850, 10, 2456) + URLEncoder.encode(str))).Pi(C0017.m52(f17short, 1860, 22, 2575));
            JSONArray jSONArray = new JSONArray();
            Iterator<Lm> it = Pi.iterator();
            while (true) {
                boolean hasNext = it.hasNext();
                int i = 1616;
                while (true) {
                    i ^= 1633;
                    switch (i) {
                        case 14:
                        case 49:
                            i = hasNext ? 1709 : 1678;
                        case 204:
                            Lm next = it.next();
                            Matcher matcher = I.matcher(next.Pi(m9).h(m56));
                            JSONObject jSONObject2 = new JSONObject();
                            boolean find = matcher.find();
                            int i2 = 1740;
                            while (true) {
                                i2 ^= 1757;
                                switch (i2) {
                                    case 17:
                                        i2 = find ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        break;
                                    case 500:
                                        String group = matcher.group(1);
                                        String trim = next.Pi(m43).h(C0017.m52(f17short, 1882, 3, 988)).trim();
                                        boolean contains = trim.contains(str);
                                        int i3 = 1864;
                                        while (true) {
                                            i3 ^= 1881;
                                            switch (i3) {
                                                case 17:
                                                    i3 = contains ? 48736 : 48705;
                                                case 47384:
                                                    break;
                                                case 47417:
                                                    String trim2 = next.Pi(m43).h(C0002.m6(f17short, 1885, 3, 1146)).trim();
                                                    boolean hP = next.hP(C0009.m30(f17short, 1888, 5, 433));
                                                    String m30 = C0009.m30(f17short, 1893, 11, 2597);
                                                    int i5 = 48767;
                                                    while (true) {
                                                        i5 ^= 48784;
                                                        switch (i5) {
                                                            case 14:
                                                            case 45:
                                                                String e = lk.h(fP.oq(next.Pi(m9).h(m56), h())).Pi(C0015.m47(f17short, 1914, 27, 2429)).get(0).e();
                                                                jSONObject2.put(C0011.m35(f17short, 1941, 6, 328), group);
                                                                jSONObject2.put(C0000.m1(f17short, 1947, 8, 1332), trim);
                                                                jSONObject2.put(C0005.m17(f17short, 1955, 7, 2803), trim2);
                                                                jSONObject2.put(m30, e);
                                                                jSONArray.put(jSONObject2);
                                                                int i6 = 49666;
                                                                while (true) {
                                                                    i6 ^= 49683;
                                                                    switch (i6) {
                                                                        case 17:
                                                                            i6 = 49697;
                                                                        case 50:
                                                                            break;
                                                                    }
                                                                }
                                                                break;
                                                            case 76:
                                                                jSONObject2.put(m30, next.Pi(C0012.m37(f17short, 1904, 10, 2695)).I());
                                                                int i7 = 48891;
                                                                while (true) {
                                                                    i7 ^= 48908;
                                                                    switch (i7) {
                                                                        case 22:
                                                                            break;
                                                                        case 503:
                                                                            i7 = 48922;
                                                                    }
                                                                }
                                                                break;
                                                            case 239:
                                                                i5 = hP ? 48860 : 48829;
                                                        }
                                                    }
                                                    break;
                                                case 47483:
                                            }
                                        }
                                        break;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    jSONObject.put(C0013.m41(f17short, 1962, 4, 460), jSONArray);
                    return jSONObject.toString();
                }
            }
        } catch (Exception e2) {
            SpiderDebug.log(e2);
            return "";
        }
    }
}
